Liferay.Service.register("Liferay.Service.library", "com.library.slayer.service");

Liferay.Service.registerClass(
	Liferay.Service.library, "Book",
	{
		create: true,
		deleteBook: true
	}
);